$(function () {
  "use strict";

  $('.multiple-items').slick({
    dots: false,
    arrows: false,
    infinite: false,
    speed: 500,
    slidesToShow: 4,
    slidesToScroll: 1,
    responsive: [
      {
        breakpoint: 991,
        settings: {
          autoplay:true,
          autoplaySpeed:2500,
          slidesToShow: 3,
          slidesToScroll: 1,
          infinite: true,
          dots: false,
          arrows: false,
        }
      },
      {
        breakpoint: 767,
        settings: {
          autoplay:true,
          autoplaySpeed:2500,
          slidesToShow: 2,
          slidesToScroll: 1,
          centerMode: true,
          centerPadding: '8%',
          infinite: true,
          dots: false,
          arrows: false,
        }
      },
      {
        breakpoint: 421,
        settings: {
          autoplay:true,
          autoplaySpeed:2500,
          slidesToShow: 1,
          slidesToScroll: 1,
          centerMode: true,
          centerPadding: '8%',
          infinite: true,
          dots: false,
          arrows: false,
        }
      }
    ]
  });

  $('.multiple-items-latest-two').slick({
    dots: false,
    arrows: false,
    infinite: false,
    speed: 500,
    slidesToShow: 2,
    slidesToScroll: 1,
    responsive: [
      {
        breakpoint: 767,
        settings: {
          autoplay:true,
          autoplaySpeed:1500,
          slidesToShow: 1.1,
          slidesToScroll: 1,
          centerMode: true,
          centerPadding: '5%',
          infinite: true,
          dots: false,
          arrows: false,
        }
      }
    ]
  });

  /*::::::::::::::::::::::::::::::::::::
  Preloader
  ::::::::::::::::::::::::::::::::::::*/
  $(window).on('load', function () {
    $('.preloader').fadeOut(500);
  });

  $(document).click(function (event) {
    //$('#collapsibleNavbar').removeClass('show');
    //$('.navbar-toggler').attr( 'aria-expanded', 'false');
  });

});